package com.guoheng.hazard.sys.service.impl.hazard;

import com.guoheng.hazard.sys.service.hazard.SensorDataService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.guoheng.hazard.sys.model.entity.hazard.SensorData;
import com.guoheng.hazard.sys.mapper.hazard.SensorDataMapper;
/**
 * 类功能描述:　SensorDataServiceImpl
 *
 * @author fbl
 * @date 2019-29-02 8:29
 */
@Service
public class SensorDataServiceImpl implements SensorDataService {

    @Resource
    private SensorDataMapper sensorDataMapper;

    
    public int deleteByPrimaryKey(Long id) {
        return sensorDataMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(SensorData record) {
        return sensorDataMapper.insert(record);
    }

    
    public int insertSelective(SensorData record) {
        return sensorDataMapper.insertSelective(record);
    }

    
    public SensorData selectByPrimaryKey(Long id) {
        return sensorDataMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(SensorData record) {
        return sensorDataMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(SensorData record) {
        return sensorDataMapper.updateByPrimaryKey(record);
    }

}
